package hpc.exercices.exercice2;

public class SequentialScan {

	/*
	 * Sequential Scan implementation
	 */
	public static int[] scan(int[] input) {
		int[] result = new int[input.length];
		result[0] = 0;
		for (int i = 1; i < input.length; ++i) {
			result[i] = result[i - 1] + input[i - 1];
		}
		return result;
	}
}
